﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

class ObjectTime
{

    private float objectTime;

    public ObjectTime()
    {
        objectTime = 0.0f;
    }

    public ObjectTime(float initTime)
    {
        objectTime = initTime;
    }

    public void refreshUpdateObjectTime()
    {
        objectTime += Time.deltaTime;
    }

    public void refreshFixedUpdateObjectTime()
    {
        objectTime += Time.fixedDeltaTime;
    }

    public float getObjectTime()
    {
        return objectTime;
    }


}
